﻿<ribbon:RibbonWindow x:Class="ReportSettings"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        Title="Report Settings"
        x:Name="ReportSettings"
        Width="Auto" Height="Auto" Icon="../../images/Main/keys.png" SizeToContent="WidthAndHeight">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ribbon:Ribbon x:Name="Ribbon">
            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu Visibility="Collapsed" >
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>
            <ribbon:Ribbon.QuickAccessToolBar>
                <ribbon:RibbonQuickAccessToolBar Visibility="Collapsed"></ribbon:RibbonQuickAccessToolBar>
            </ribbon:Ribbon.QuickAccessToolBar>

            <ribbon:RibbonTab x:Name="ReportSettingsTab"
							  
							  Header="Report Settings">
                <ribbon:RibbonGroup x:Name="Actions"
									Header="Actions">
                    <ribbon:RibbonButton x:Name="buttonRefresh"
										 LargeImageSource="../../images/actions/Refresh-64.png"
										 Label="Refresh" />
                    <ribbon:RibbonButton x:Name="buttonSave"
										 LargeImageSource="../../images/actions/ctrlsave.png"
										 Label="Save"/>
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
        </ribbon:Ribbon>
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>

            </Grid.RowDefinitions>
            <GroupBox Header="Report file location" Grid.Row="0" Margin="5">

                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBox Grid.Column="0" Width="250" Name="textboxReportFilesLocation" Margin="5" IsReadOnly="True" ></TextBox>
                    <Button Grid.Column="1" Name="buttonBrowseReport" Margin="5" Width="100">Browse</Button>
                </Grid>
            </GroupBox>
            <GroupBox Header="Report Paremeters" Grid.Row="1" Margin="5">

                <Grid HorizontalAlignment="Left">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Label Grid.Column="0" HorizontalAlignment="Right" Name="LabelHeader" Margin="5" >Header</Label>
                    <TextBox Grid.Column="1" Width="250" Name="textboxReportHeaderCompany" Margin="5" Text="{Binding CompanyName
                        ,UpdateSourceTrigger=PropertyChanged
                                    ,ValidatesOnExceptions=True
                                    ,TargetNullValue=''
                                    ,NotifyOnValidationError=true}"  ></TextBox>
                    <Label Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" Name="Label1" Margin="5" >Show Amounts</Label>
                    <CheckBox Grid.Column="1" Grid.Row="1" Margin="5" Name="CheckBoxShowAmount" VerticalAlignment="Center"></CheckBox>
                </Grid>
            </GroupBox>          
        </Grid>

    </Grid>
</ribbon:RibbonWindow>
